package com.yzt.zhuju.dialog;

import android.content.Context;
import android.view.Gravity;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.yzt.zhuju.R;

/**
 * <pre>
 *      author : TK
 *      time : 2017/8/4
 *      desc :
 * </pre>
 */

public class LoadingDialog extends NewBaseDialog {

    ImageView image;

    public LoadingDialog(Context context) {
        super(context);
    }

    @Override
    protected int layoutId() {
        return R.layout.dialog_new_loading;
    }

    @Override
    protected void onContentViewSet() {
        image = findViewById(R.id.image);
        getWindow().setGravity(Gravity.CENTER);
        Glide.with(getContext()).asGif().load(R.drawable.icon_loading).into(image);
    }
}
